// 筛选框-列表参数-品类名称
export const tableSearchObj = {
  api: '/api/procurement/infra/category/list',
  renderConfig: {
    categoryCode: {
      label: '品类编码',
      field: 'categoryCode',
      componentName: 'input',
    },
    categoryName: {
      label: '品类名称',
      field: 'categoryName',
      componentName: 'input',
    },
    documentPreparationStatus: {
      label: '制单状态',
      field: 'documentPreparationStatus',
      componentName: 'dictSelect',
      componentProps: {
        allowClear: 'true',
        dictType: 'documentPreparationStatus', // TODO: unknown dict changeDict
      },
    },
  },
  renderKeys: ['categoryCode', 'categoryName', 'documentPreparationStatus'],
  columns: [
    {
      title: '品类名称',
      dataIndex: 'categoryName',
      fixed: 'left',
      cellClass: 'keep-name-all',
    },
    {
      title: '密级',
      dataIndex: 'secretLevel',
      slotName: 'secretLevel',
      width: 100,
      fixed: 'left',
    },
    {
      title: '采购件分类',
      dataIndex: 'procurementClassificationName',
      width: 120,
    },
    {
      title: '品类编码',
      dataIndex: 'categoryCode',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '采购品类层级',
      dataIndex: 'categoryHierarchy',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '零级品类',
      dataIndex: 'categoryZeroName',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '父级品类编码',
      dataIndex: 'parentCategoryCode',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '父级品类名称',
      dataIndex: 'parentCategoryName',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '品类状态',
      dataIndex: 'categoryStatusName',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '生效日期',
      dataIndex: 'effectiveTime',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '失效日期',
      dataIndex: 'invalidTime',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '申请人',
      dataIndex: 'preparedBy',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '最新维护人',
      dataIndex: 'updater',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '最后修改时间',
      dataIndex: 'updateTime',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '制单状态',
      dataIndex: 'documentPreparationStatusName',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '编制人',
      dataIndex: 'creator',
      // fixed: 'right',
      width: 120,
    },
    {
      title: '创建时间',
      dataIndex: 'createTime',
      // fixed: 'right',
      width: 120,
    },
  ],
};
export default tableSearchObj;
